package com.feihong.txgw.inter.contract.location;

import com.feihong.txgw.model.bean.user.SortModel;
import com.feihong.txgw.ui.mvp.model.IBaseModel;
import com.feihong.txgw.ui.mvp.precenter.AbBasePrecenter;
import com.feihong.txgw.ui.mvp.view.IBaseActivity;

import io.reactivex.Observable;

/**
 * @Author wangziheng
 * @ProjectName txgw_app
 * @ClassName ILocationContract
 * @package com.feihong.txgw.inter.contract.location
 * @data 2018/5/7 17:53
 * @Describe
 * @Change
 */
public interface ILocationContract {

    interface ILocationMainView extends IBaseActivity{

        void loadAllCityResult(SortModel result);

    }

    interface ILocationMainModel extends IBaseModel{

        Observable countCityHits(String regionID);

        Observable<SortModel> getAllCity();

    }

    abstract class AbLocationMainPrecenter extends AbBasePrecenter<ILocationMainModel,ILocationMainView>{

        public abstract void countCityHits(String regionID);

        public abstract void loadAllCity();
    }
}
